package com.future.order.feign;

import com.future.product.ProductDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "service-product")
public interface ProductFeignClient {

    @GetMapping("/product/get/{id}")
    ProductDO getProductId(@PathVariable("id") int id, @RequestHeader("token") String token);

}
